﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="PR_SalaryEmployee.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.PR_SalaryEmployee" %>
  
<asp:Content ID="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1">  

  <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" />
         
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server">
    </telerik:RadAjaxLoadingPanel>
    
   
      <asp:panel ID="Panel6" runat="server" >
    <table width="1000" cellpadding="0" cellspacing="0">
        <tr>
            <td valign = "top">
                 
            </td>
            <td width="20" >
            </td>
          </tr>
          <tr>
          <td colspan = "3">
          

        <div class="Background980V3" style="margin: 10px 0 10px 0; width: 980px"> 
        <table align="center" width ="100%" >
        <tr>
            <td align="left" class="tableHeader">
                เงินเดือนพนักงาน</td>
        </tr>
        </table>
        <table width ="100%" align="center">
        <tr>
        <td align="center">
        <asp:Panel ID="PanelGrid" runat="server" Width="950px" ScrollBars="Auto" SkinID="WebBlue" >
                <telerik:RadGrid ID="RadGrid2" runat="server" AllowFilteringByColumn="True" AllowAutomaticDeletes="True"
                    AllowMultiRowEdit="True" AllowMultiRowSelection="True" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True" 
                    EnableAJAXLoadingTemplate="True" GridLines="None" 
                    OnItemCommand="RadGrid2_ItemCommand" Skin="Transparent" Width="99%">
                    <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" 
                        ClientDataKeyNames="emp_seq" DataKeyNames="emp_seq" 
                        InsertItemPageIndexAction="ShowItemOnCurrentPage" 
                        NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                         
                        <ExpandCollapseColumn Visible="True">
                        </ExpandCollapseColumn>
                        
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" 
                                EditText="คลิกเพื่อแก้ไขข้อมูล">
                                <ItemStyle Width="15px" />
                            </telerik:GridEditCommandColumn>

                            <telerik:GridBoundColumn DataField="emp_seq" HeaderText="รหัส" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                               UniqueName="emp_seq"
                               Visible="False">
                                <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            
                            <telerik:GridBoundColumn DataField="emp_name" HeaderText="ชื่อพนักงาน" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                               UniqueName="emp_name">
                               <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                               <ItemStyle HorizontalAlign="Left" />
                            </telerik:GridBoundColumn>       
                            
                            <telerik:GridBoundColumn DataField="pos_ref" HeaderText="หมายเลขตำแหน่ง" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                               UniqueName="pos_ref">
                               <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                               <ItemStyle HorizontalAlign="Left" />
                            </telerik:GridBoundColumn>       
                            
                            <telerik:GridBoundColumn DataField="pos_name" HeaderText="ตำแหน่ง" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                               UniqueName="pos_name">
                               <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                               <ItemStyle HorizontalAlign="Left" />
                            </telerik:GridBoundColumn>       
                            
                            <telerik:GridBoundColumn DataField="job_site_name" HeaderText="หน่วยงาน" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                               UniqueName="job_site_name">
                               <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                               <ItemStyle HorizontalAlign="Left" />
                            </telerik:GridBoundColumn>       

                            <telerik:GridNumericColumn DataField="salary" HeaderText="เงินเดือน" 
                               ShowFilterIcon="false" DataFormatString="{0:###,###.## บาท}"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                               UniqueName="salary">
                               <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                               <ItemStyle HorizontalAlign="Left" />
                            </telerik:GridNumericColumn>                            
                            
                        </Columns>
                        <EditFormSettings EditFormType="WebUserControl" 
                            UserControlName="../UserControls/PR_SalaryEmployee.ascx">
                            <EditColumn UniqueName="EditCommandColumn1">
                            </EditColumn>
                        </EditFormSettings>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                    </MasterTableView>
                    <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" 
                        EnableRowHoverStyle="True" ReorderColumnsOnClient="True">
                        <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
                    </ClientSettings>
                </telerik:RadGrid>
            </asp:Panel>
                </td>
                </tr>
                </table> 
</div>
</td>
</tr>
</table>
</asp:panel>

</asp:Content>
